package com.project.service.impl;

import com.project.bean.UserBean;
import com.project.mapper.IUserMapper;
import com.project.service.IUserService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements IUserService {
    private IUserMapper mapper;

    @Override
    public void add(UserBean userBean) {
        mapper.add(userBean);
    }

    @Override
    public void del(Integer id) {

        mapper.del(id);
    }

    @Override
    public List<UserBean> findAll() {

        return mapper.findAll();
    }

    @Override
    public void update(String phone, Integer id) {

        mapper.update(phone,id);
    }
}
